﻿<%@ Page Title="药品汇总统计" Language="C#" MasterPageFile="~/Master/MasterPage.master"
    AutoEventWireup="True" CodeBehind="TotalDrugsStatistics.aspx.cs" Inherits="TotalDrugs_HospitaltotalDrugs" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Assembly="CommonLib" Namespace="HZ.Web" TagPrefix="rbac" %>
<%@ Register Src="../Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li><a href="../Secondphase/NewReport/GoodsPSLList.aspx">药品汇总统计</a></li>
            <li class="active"><a href="../../TotalDrugs/TotalDrugsStatistics.aspx">药品实时汇总统计</a></li>
        </ul>
    </div>
    <div id="tabcontent2">
        <uc1:QueryControl ID="QueryControl1" runat="server" />
    </div>
    <div>
        <asp:GridView ID="gvwInfo" runat="server" CssClass="mainlist" Width="100%" AutoGenerateColumns="False"
            OnRowCommand="gvwInfo_RowCommand" DataKeyNames="ProcureCatalogID,ProductName">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%# Container.DataItemIndex+1+(AspNetPager1.CurrentPageIndex-1)*AspNetPager1.PageSize %>
                    </ItemTemplate>
                    <HeaderStyle Width="30px" />
                </asp:TemplateField>
                <asp:BoundField DataField="ProcureCatalogID" HeaderText="药品编号" />
                <asp:BoundField HeaderText="通用名" DataField="ProductName" />
                <asp:BoundField HeaderText="剂型" DataField="MedicineModelName" />
                <asp:BoundField HeaderText="采购规格" DataField="Pack" />
                <asp:BoundField HeaderText="采购单位" DataField="Unit" />
                <asp:BoundField HeaderText="实际采购价格" DataField="Price" DataFormatString="{0:N3}" />
                <asp:BoundField HeaderText="生产企业" DataField="CompanyName_SC" />
                <%--                <asp:BoundField HeaderText="采购数量" DataField="PurchaseCountTotal" />--%>
                <asp:BoundField HeaderText="采购金额" DataField="PurchaseAmountTotal" DataFormatString="{0:N3}" />
                <%--             <asp:BoundField HeaderText="入库数量" DataField="WareHouseCountTotal" />--%>
                <asp:BoundField HeaderText="入库金额" DataField="WareHouseAmountTotal" DataFormatString="{0:N3}" />
                <asp:BoundField HeaderText="采购次数" DataField="CountOrder" />
                <asp:BoundField HeaderText="入库率" DataField="WareHouseRate" DataFormatString="{0:P3}"
                    NullDisplayText="NA" />
                <asp:BoundField HeaderText="加成率" DataField="AdditionRate" DataFormatString="{0:P3}"
                    NullDisplayText="NA" />
                <%-- <asp:TemplateField HeaderText="查看">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbnHos" runat="server" Text="相关医院" CommandName="DrugHospital"
                            CommandArgument='<%# Eval("ProcureCatalogID")+","+Eval("ProductName") %>'></asp:LinkButton>
                        <asp:LinkButton ID="lbnCom_PS" runat="server" Text="配送企业" CommandName="DrugComp"
                            CommandArgument='<%# Eval("ProcureCatalogID")+","+Eval("ProductName") %>'></asp:LinkButton>
                        <asp:LinkButton ID="lbnDetail" runat="server" Text="采购明细" CommandName="DrugDetails"
                            CommandArgument='<%# Eval("ProcureCatalogID")+","+Eval("ProductName") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="其它">
                    <ItemTemplate>
                        <asp:DropDownList ID="ddlOther" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlOther_SelectedIndexChanged"
                            DataSourceID="XmlDataSource1" DataTextField="Name" DataValueField="Id">
                        </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>--%>
            </Columns>
        </asp:GridView>
    </div>
    <div class="page">
        <span style="width: 30%; float: left; text-align: left">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span>
        <span style="width: 70%; float: right; text-align: right">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </span>
    </div>
    <div class="listip">
        <ul>
            <li>统计：<asp:Label ID="lblCount" runat="server" Text="暂无符合条件的数据！"></asp:Label>
            </li>
            <asp:LinkButton ID="lbtnSee" runat="server" OnClick="lbtnSee_Click" Font-Size="Small"
                Visible="false">显示图表</asp:LinkButton>
            <uc2:ChartControl ID="ChartControl1" runat="server" Visible="False" />
            <li>说明:<span>（1）实时查询数据量庞大，建议静态查询；</span></li>
            <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>（2）由于数据量庞大，请先选择相应条件，点击“查询”按钮。</span>
            </li>
        </ul>
    </div>
</asp:Content>
